-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lab 4,5 #203
base: main
Are you sure you want to change the base?
lab 4,5 #203
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 за delete
-1 за кодировку
-2 за битые файлы после манипуляций
8
@@ -0,0 +1,25 @@ | |||
#include <stdio.h> | |||
#include "str.h" | |||
char *get_10_2 (int data, int size, int iterator, char *arr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// codestyle
Не надо писать имплементацию функций в .h файле
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9.5
void check_color() | ||
{ | ||
int color = 0; | ||
fseek(fin, 59, SEEK_SET); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// codestyle
59 - magic number
} | ||
if (strcmp(argv[i], "--output")==0) | ||
{ | ||
path=malloc(strlen(argv[i+1])+1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// logical
Утечка памяти
-0.5
} | ||
if (strcmp(argv[i], "--max_iter")==0) | ||
{ | ||
n=0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// codestyle
лучше вынести в функцию
No description provided.